<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="/fuman/js/order.js"></script>
<title>添加海外仓派仓规则</title>
<script type="text/javascript">
	function checkDecimal(obj,flag) {
		if(flag == 1){
			var decimalReg=/^\d{0,9}\)?$/; //只能输入数字
		}
		if(flag == 2){
			var decimalReg = /^\d+(?=\.{0,1}\d+$|$)/; //可以输入数字或小数点
		}
		if(obj.value!=""&&decimalReg.test(obj.value)){
		}else {
			if (obj.value != "") {
				obj.value = 0
			}
		}
	}
	function saveOverseaRules() {
		var name = $("#name").val();
		if(!name){
			alert("请填写规则名");return false;
		}
		if(!$("#shopnameid").val()){
			alert("请选择相关店铺");return false;
		}
		if(!$("#countryid0").val()){
			alert("请选择相关国家");return false;
		}
		if(!$("#deliveroversea").val()){
			alert("请选择相关发货仓库");return false;
		}
		if($("#deliveroversea").val()==1){
			if($("#transportoversea").val()!="YH2TK"){
				alert("发货仓库与货运方式不匹配，请重新选择");return false;
			}
		}
		if($("#deliveroversea").val()==4){
			if($("#transportoversea").val()!="1000111"){
				alert("发货仓库与货运方式不匹配，请重新选择");return false;
			}
		}
		if($("#deliveroversea").val()==2){
			if($("#transportoversea").val()=="DHLPEU" || $("#transportoversea").val()=="DPDEU" || $("#transportoversea").val()=="DPORD"){

			}else{
				alert("发货仓库与货运方式不匹配，请重新选择");return false;
			}
		}
		if($("#deliveroversea").val()==3){
			if($("#transportoversea").val()=="UPS-G-I" || $("#transportoversea").val()=="USPS-P"){

			}else{
				alert("发货仓库与货运方式不匹配，请重新选择");return false;
			}
		}


		AWS.ajax_post($('#theFrom'));
	}
	//海外仓  仓库变化，货运方式跟着变化
	function changeWarehouse() {
		var deliveroversea = $("#deliveroversea").val();
		$("#transportoversea").empty();
		//英华英国仓
		if(deliveroversea==1){
			//货运方式
			$("#transportoversea").append("<option value='YH2TK'>英国 Royal Mail 2nd Class TR48</option>");
		}
		//英华德国仓
		if(deliveroversea==2){
			$("#transportoversea").append("<option value='DHLPEU'>DE DHL Paket</option>");
			$("#transportoversea").append("<option value='DPDEU'>DE DPD</option>");
			$("#transportoversea").append("<option value='DPORD'>DE DP Letter</option>");
		}
		//EZGO美国仓
		if(deliveroversea==3){
			$("#transportoversea").append("<option value='UPS-G-I'>US UPS Ground</option>");
			$("#transportoversea").append("<option value='USPS-P'>US USPS Priority</option>");
		}
		//万邑通美西仓
		if(deliveroversea==4){
			$("#transportoversea").append("<option value='1000111'>1000111</option>");
		}

	}
</script>
<body class="withvernav">
<div class="bodywrapper">
	{{include file='/public/leftmenu.tpl'}}
	<div class="centercontent">

		<div class="pageheader notab">
			<h1 class="pagetitle">添加海外仓派仓规则</h1>
            <span class="pagedesc">说明：1.查询注意事项：勾中反选即不包含后面设定的条件，例如国家选择：美国；勾中反选即所有不为美国的国家．<br>
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>
			<div class="menulist">
				<ul class="profile_summary">
				</ul>
			</div>
		</div><!--pageheader-->

		<div id="contentwrapper" class="contentwrapper">

			<div id="basicform" class="subcontent">
				<form class="stdform stdform2"  id="theFrom" method="post" action="/oversea/saveOverseaRules">
					<p>
						<label>规则名称</label>
                            <span class="field">
                          <input type="text" name="name" id="name" class="width300" value="{{$detail.name}}" placeholder="请输入名称">
                          <span id="namerr"></span>
                            </span>
					</p>
					<br/>
					<span style="font-weight: bold;color:red;font-size:16px;">来源：</span>
					<hr/>
					<p>
						<label>订单来源店铺</label>
                            <span class="field">
                            <textarea name="shopname"  id="shopnameid" cols="5" rows="5">{{$detail.shopname}}</textarea>
                         	<span><br>  <INPUT name="shopflag" value="1"  {{if $detail.shopflag==1}} checked{{/if}} type="checkbox" >
                       	    反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onClick="selectShop()"><font color="#003399">选择店铺</font></a></span>
                            </span>
					</p>
					<br/>
					<span style="font-weight: bold;color:red;font-size:16px;">物流：</span>
					<hr/>
					<p>
						<label>收货人国家
						</label>
                            <span class="field">

                          <textarea name="country"  id="countryid0" cols="8" rows="5">{{$detail.country}}</textarea>
                          <span><br>  <INPUT name="countryflag" value="1" {{if $detail.countryflag==1}} checked{{/if}} type="checkbox" >
                       	    反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="javascript:void(0)" onClick="selectCountry(0)"><font color="#003399">选择国家</font></a></span>
                          </span>
					</p>
					<p>
						<label>收货人邮编
						</label>
                            <span class="field">
                          <textarea name="zipcode"  id="zipcode" cols="8" rows="5">{{$detail.zipcode}}</textarea>
                          <span><br><INPUT name="zipcodeflag" value="1" {{if $detail.zipcodeflag==1}} checked{{/if}} type="checkbox" >
                       	    反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	                          <a href="javascript:void(0)" onClick="selectZipcode(0)"><font color="#003399">选择邮编</font></a></span>
                          </span>
					</p>
					<p>
						<label>收货人街道包含指定字符
						</label>
                            <span class="field">

                          <textarea name="street"  id="street" cols="8" rows="5">{{$detail.street}}</textarea>
                          <span><br>(多个指定字符以分号间隔)
                          </span>
					</p>
					<br/>
					<span style="font-weight: bold;color:red;font-size:16px;">订单：</span>
					<hr/>
					<p>
					<label>买家选择的配送方式</label>
							<span class="field">
                          <textarea name="logisticsName"  id="logisticsName" cols="8" rows="5">{{$detail.logistics}}</textarea>
                          <span><br>
	                          <a href="javascript:void(0)" onClick="selectLogistics(0)"><font color="#003399">选择配送方式</font></a>
	                            <!--
									<select id="logisticsName" name="logisticsName" title="shipService1" class="dom-svc" parent="service1">
										<option value="">请选择买家选择的配送方式</option>
										<optgroup label="Sparversandoptionen" class="cell-selectOptgrp">
											<option value="DE_DeutschePostWarensendung" class="cell-selectOption" {{if $detail.logistics eq "DE_DeutschePostWarensendung"}} selected="selected" {{/if}}>Deutsche Post Warensendung (2 bis 4 Werktage)</option>
											<option value="DE_DeutschePostBuchersendung" class="cell-selectOption" {{if $detail.logistics eq "DE_DeutschePostBuchersendung"}} selected="selected" {{/if}}>Deutsche Post Büchersendung (2 bis 4 Werktage)</option>
											<option value="DE_DPBuecherWarensendung" class="cell-selectOption" {{if $detail.logistics eq "DE_DPBuecherWarensendung"}} selected="selected" {{/if}}>Deutsche Post Bücher-/Warensendung (2 bis 4 Werktage)</option>
										</optgroup>
										<optgroup label="Standardversandoptionen" class="cell-selectOptgrp">
											<option value="DE_DeutschePostBrief" class="cell-selectOption" {{if $detail.logistics eq "DE_DeutschePostBrief"}} selected="selected" {{/if}}>Deutsche Post Brief (1 bis 2 Werktage)</option>
											<option value="DE_DHLPackchen" class="cell-selectOption" {{if $detail.logistics eq "DE_DHLPackchen"}} selected="selected" {{/if}}>DHL Päckchen (1 bis 2 Werktage)</option>
											<option value="DE_DHLPaket" class="cell-selectOption" {{if $detail.logistics eq "DE_DHLPaket"}} selected="selected" {{/if}}>DHL Paket (1 bis 2 Werktage)</option>
											<option value="DE_DHLAlterssichtprüfung18" class="cell-selectOption" {{if $detail.logistics eq "DE_DHLAlterssichtprüfung18"}} selected="selected" {{/if}}>DHL Paket mit Alterssichtprüfung ab 18 Jahre (1 bis 2 Werktage)</option>
											<option value="DE_HermesPackchen" class="cell-selectOption" {{if $detail.logistics eq "DE_HermesPackchen"}} selected="selected" {{/if}}>Hermes Päckchen (1 bis 2 Werktage)</option>
											<option value="DE_eBayHermesPaketShop2ShopKaeufer" class="cell-selectOption" {{if $detail.logistics eq "DE_eBayHermesPaketShop2ShopKaeufer"}} selected="selected" {{/if}}>eBay Hermes Paket Shop2Shop (Abgabe und Zustellung im PaketShop) (1 bis 2 Werktage)</option>
											<option value="DE_eBayHermesPaketSperrgutShop2Shop" class="cell-selectOption" {{if $detail.logistics eq "DE_eBayHermesPaketSperrgutShop2Shop"}} selected="selected" {{/if}}>eBay Hermes Paket Sperrgut Shop2Shop (Abgabe und Zustellung im Paketshop) (1 bis 2 Werktage)</option><option value="DE_HermesPaket" class="cell-selectOption">Hermes Paket (1 bis 2 Werktage)</option>
											<option value="DE_HermesPaketSperrgut" class="cell-selectOption" {{if $detail.logistics eq "DE_HermesPaketSperrgut"}} selected="selected" {{/if}}>Hermes Paket Sperrgut (1 bis 2 Werktage)</option>
											<option value="DE_IloxxTransport" class="cell-selectOption" {{if $detail.logistics eq "DE_IloxxTransport"}} selected="selected" {{/if}}>iloxx Transport (1 bis 2 Werktage)</option>
											<option value="DE_DPDClassic" class="cell-selectOption" {{if $detail.logistics eq "DE_DPDClassic"}} selected="selected" {{/if}}>DPD Classic (1 bis 2 Werktage)</option>
											<option value="DE_UPSStandard" class="cell-selectOption" {{if $detail.logistics eq "DE_UPSStandard"}} selected="selected" {{/if}}>UPS Standard (1 bis 2 Werktage)</option>
											<option value="DE_Paket" class="cell-selectOption" {{if $detail.logistics eq "DE_Paket"}} selected="selected" {{/if}}>Paketversand (1 bis 2 Werktage)</option>
											<option value="DE_Einschreiben" class="cell-selectOption" {{if $detail.logistics eq "DE_Einschreiben"}} selected="selected" {{/if}}>Einschreiben (1 bis 2 Werktage)</option>
											<option value="DE_Nachname" class="cell-selectOption" {{if $detail.logistics eq "DE_Nachname"}} selected="selected" {{/if}}>Nachnahme (1 bis 2 Werktage)</option>
											<option value="DE_SonstigeDomestic" class="cell-selectOption" {{if $detail.logistics eq "DE_SonstigeDomestic"}} selected="selected" {{/if}}>Sonstige 1-2 Werktage (1 bis 2 Werktage)</option>
											<option value="DE_SpecialDelivery" class="cell-selectOption" {{if $detail.logistics eq "DE_SpecialDelivery"}} selected="selected" {{/if}}>Sonder-/Speditionsversand (1 bis 3 Werktage)</option>
											<option value="DE_GLSPaket" class="cell-selectOption" {{if $detail.logistics eq "DE_GLSPaket"}} selected="selected" {{/if}}>GLS Paket (1 Werktag)</option>
										</optgroup>
										<optgroup label="Expressversandoptionen" class="cell-selectOptgrp">
											<option value="DE_DPDExpress" class="cell-selectOption" {{if $detail.logistics eq "DE_DPDExpress"}} selected="selected" {{/if}}>DPD Express (1 Werktag)</option>
											<option value="DE_UPSExpress" class="cell-selectOption" {{if $detail.logistics eq "DE_UPSExpress"}} selected="selected" {{/if}}>UPS Express (1 Werktag)</option>
											<option value="DE_Express" class="cell-selectOption" {{if $detail.logistics eq "DE_Express"}} selected="selected" {{/if}}>Sonstige 1 Werktag (1 Werktag)</option>
											<option value="DE_DHLFreightDomestic" class="cell-selectOption" {{if $detail.logistics eq "DE_DHLFreightDomestic"}} selected="selected" {{/if}}> DHL Freight Domestic (2 bis 3 Werktage)</option>
										</optgroup>
										<optgroup label="Versandoptionen aus dem Ausland" class="cell-selectOptgrp">
											<option value="DE_SparversandAusDemAusland" class="cell-selectOption" {{if $detail.logistics eq "DE_SparversandAusDemAusland"}} selected="selected" {{/if}}>Sparversand aus dem Ausland (10 bis 22 Werktage)</option>
											<option value="DE_EconomyShippingFromGC" class="cell-selectOption" {{if $detail.logistics eq "DE_EconomyShippingFromGC"}} selected="selected" {{/if}}>Sparpreisversand weltweit von China/Hong Kong/Taiwan to worldwide (11 bis 35 Werktage)</option>
											<option value="DE_StandardversandAusDemAusland" class="cell-selectOption" {{if $detail.logistics eq "DE_StandardversandAusDemAusland"}} selected="selected" {{/if}}>Standardversand aus dem Ausland (4 bis 10 Werktage)</option>
											<option value="DE_MiniPakFromAbroad" class="cell-selectOption" {{if $detail.logistics eq "DE_MiniPakFromAbroad"}} selected="selected" {{/if}}>MiniPak aus dem Ausland (6 bis 10 Werktage)</option>
											<option value="DE_TrakPakFromAbroad" class="cell-selectOption" {{if $detail.logistics eq "DE_TrakPakFromAbroad"}} selected="selected" {{/if}}>TrakPak aus dem Ausland (5 bis 8 Werktage)</option>
											<option value="DE_DHLExpressWorldwide" class="cell-selectOption" {{if $detail.logistics eq "DE_DHLExpressWorldwide"}} selected="selected" {{/if}}>DHL Express Worldwide (1 bis 3 Werktage)</option>
											<option value="DE_StandardShippingFromGC"  class="cell-selectOption" {{if $detail.logistics eq "DE_StandardShippingFromGC"}} selected="selected" {{/if}}>Standardversand weltweit von China/Hong Kong/Taiwan to worldwide (7 bis 19 Werktage)</option>
											<option value="DE_ExpressversandAusDemAusland" class="cell-selectOption" {{if $detail.logistics eq "DE_ExpressversandAusDemAusland"}} selected="selected" {{/if}}>Expressversand aus dem Ausland (1 bis 3 Werktage)</option>
											<option value="DE_FedExIntlEconomy" class="cell-selectOption" {{if $detail.logistics eq "DE_FedExIntlEconomy"}} selected="selected" {{/if}}>FedEx International Economy (3 bis 4 Werktage)</option>
											<option value="DE_TntIntlExp" class="cell-selectOption" {{if $detail.logistics eq "DE_TntIntlExp"}} selected="selected" {{/if}}>TNT International Express (2 bis 3 Werktage)</option>
											<option value="DE_TrackedDeliveryFromAbroad" class="cell-selectOption" {{if $detail.logistics eq "DE_TrackedDeliveryFromAbroad"}} selected="selected" {{/if}}>Versand mit Nachverfolgung aus dem Ausland (2 bis 5 Werktage)</option>
											<option value="DE_ExpeditedShippingFromGC" class="cell-selectOption" {{if $detail.logistics eq "DE_ExpeditedShippingFromGC"}} selected="selected" {{/if}}>Expressversand weltweit von China/Hong Kong/Taiwan to worldwide (2 bis 7 Werktage)</option>
										</optgroup>
									</select>
									-->
                        </span>
					</p>
					<p>
						<label>买家支付运费 	</label>
                            <span class="field">
                          <input type="text" name="freight1" id="freight1" class="width100" value="{{$detail.freight1}}" onblur="checkDecimal(this,2)"> -
                          <input type="text" name="freight2" id="freight2" class="width100" value="{{$detail.freight2}}" onblur="checkDecimal(this,2)"> RMB
                           </span>
					</p>
					<p>
						<label>订单总金额	</label>
                            <span class="field">
                          <input type="text" name="amount1" id="amount1" class="width100" value="{{$detail.amount1}}" onblur="checkDecimal(this,2)"> -
                          <input type="text" name="amount2" id="amount2" class="width100" value="{{$detail.amount2}}" onblur="checkDecimal(this,2)"> RMB
					</p>
					<p>
						<label>订单商品总成本	</label>
                            <span class="field">
                          <input type="text" name="costprice1" id="amount1" class="width100" value="{{$detail.costprice1}}" onblur="checkDecimal(this,2)"> -
                          <input type="text" name="costprice2" id="amount2" class="width100" value="{{$detail.costprice2}}" onblur="checkDecimal(this,2)"> RMB
					</p>
					<p>
						<label>订单总重量	 </label>
                            <span class="field">
                          <input type="text" name="weight1" id="weight1" class="width100" value="{{$detail.weight1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="weight2" id="weight2" class="width100" value="{{$detail.weight2}}" onblur="checkDecimal(this,1)"> 克
                          </span>
					</p>
					<p>
						<label>库存状态	</label>
                            <span class="field">
                            <input type="radio" name="stockstatus" id = "stockstatus" {{if $detail.stockstatus eq 1}} checked {{/if}} value="1" >
                                订单里所有的SKU在指定仓库有库存才上传订单 &nbsp;&nbsp;
	                            <input type="radio" name="stockstatus" id = "stockstatus" {{if $detail.stockstatus eq 2}} checked {{/if}} value="2" >
                                订单里所有的SKU在指定仓库不论是否有库存都上传订单
                            </span>
					</p>
					<p>
						<label>订单状态	</label>
                            <span class="field">
                            <INPUT name="orderstatus[]" {{if in_array('1',$detail.orderstatus)}} checked{{/if}} value="1" type="checkbox">
                            新订单、
                            <INPUT name="orderstatus[]" {{if in_array('2',$detail.orderstatus)}} checked{{/if}} value="2" checked type="checkbox">
                            已支付、
                            <INPUT name="orderstatus[]" {{if in_array('3',$detail.orderstatus)}} checked{{/if}} value="3" type="checkbox">
                            配货中、
                            <INPUT name="orderstatus[]" {{if in_array('4',$detail.orderstatus)}} checked{{/if}} value="4" type="checkbox">
                            已发货、
                            <INPUT name="orderstatus[]" {{if in_array('5',$detail.orderstatus)}} checked{{/if}} value="5" type="checkbox">
                            已完成、
                            <INPUT name="orderstatus[]" {{if in_array('6',$detail.orderstatus)}} checked{{/if}} value="6" type="checkbox">
                            作废
                            </span>
					</p>
					<p>
						<label>订单仅包含SKU</label>
                            <span class="field">
                        	 <textarea name="goodsno" id="goodsno" cols="5" rows="5">{{$detail.goodsno}}</textarea><br>
                            <INPUT name="goodsnoflag" value="1"  {{if $detail.goodsnoflag==1}} checked{{/if}} type="checkbox" > 反选&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color="#003399">(多个SKU以分号间隔)</font></span>
						</span>
					</p>
					<br/>
					<span style="font-weight: bold;color:red;font-size:16px;">SKU：</span>
					<hr/>
					<p>
						<label>最长边 	</label>
						<span class="field">
                          <input type="text" name="length1" id="length1" class="width100" value="{{$detail.length1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="length2" id="length2" class="width100" value="{{$detail.length2}}" onblur="checkDecimal(this,1)"> CM
						</span>
					</p>
					<p>
						<label>次长边 	</label>
                            <span class="field">
                          <input type="text" name="width1" id="width1" class="width100" value="{{$detail.width1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="width2" id="width2" class="width100" value="{{$detail.width2}}" onblur="checkDecimal(this,1)"> CM
                           </span>
					</p>
					<p>
						<label>最短边 	</label>
                            <span class="field">
                          <input type="text" name="heigth1" id="heigth1" class="width100" value="{{$detail.heigth1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="heigth2" id="heigth2" class="width100" value="{{$detail.heigth2}}" onblur="checkDecimal(this,1)"> CM
                           </span>
					</p>
					<p>
						<label>最长边+（次长边+最短边）*2	</label>
                            <span class="field">
                          <input type="text" name="calcvalue1" id="calcvalue1" class="width100" value="{{$detail.calcvalue1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="calcvalue2" id="calcvalue2" class="width100" value="{{$detail.calcvalue2}}" onblur="checkDecimal(this,1)"> CM
                           </span>
					</p>
					<p>
						<label>长宽高之和 	</label>
                            <span class="field">
                          <input type="text" name="sumvalue1" id="sumvalue1" class="width100" value="{{$detail.sumvalue1}}" onblur="checkDecimal(this,1)"> -
                          <input type="text" name="sumvalue2" id="sumvalue2" class="width100" value="{{$detail.sumvalue2}}" onblur="checkDecimal(this,1)"> CM
                           </span>
					</p>
					<!--
					<p>
						<label>订单时间	</label>
                            <span class="field">
                       	   <INPUT name="ordertime" value="1" {{if $detail.ordertime==1}} checked{{/if}} type="radio">
                       	   一天内、
                           <INPUT name="ordertime" value="3" {{if $detail.ordertime==3}} checked{{/if}} type="radio">
                           三天内、
                           <INPUT name="ordertime" value="7" {{if $detail.ordertime==7}} checked{{/if}} type="radio">
                           七天内、
                           <INPUT name="ordertime" value="30" {{if $detail.ordertime==30}} checked{{/if}} type="radio">

                           三十天内 <br><br> <A onClick="return cancel('ordertime');"><font color="#003399">取消</font></A>
                           </span>
					</p>
					-->
					<!--<p>
                            <label>发货仓库	</label>
                            <span class="field">
                                {{foreach from=$warehouse item=li key=key}}
                                    <INPUT name="deliverWarehouse[]" {{if in_array({{$li.id}},$detail.warehouseId)}} checked{{/if}} value="{{$li.id}}" type="checkbox">
                                {{$li.storagename}}
                                {{/foreach}}
                            </span>
                        </p>-->
					<p>
						<!--
						<label>买家选择的配送方式	</label>
                            <span class="field">
                            <SELECT id="logisticsID" name="logisticsID" width="200">
	                            <OPTION value="">---请选择配送方式---</OPTION>
	                            {{foreach from=$express item=li key=key}}
	                            <OPTION value="{{$li.id}}" {{if $detail.logisticsID==$li.id}}selected{{/if}}>{{$li.name}}</OPTION>
	                            {{/foreach}}
                            </SELECT>
                            </span>
                        -->
					<br/>
					<span style="font-weight: bold;color:red;font-size:16px;">执行内容：</span>
					<hr/>
					<p>
						<label>发货仓库</label>
							<span class="field">
								发货仓库：
								<select name="deliveroversea" id="deliveroversea" onChange="changeWarehouse()">
									<option value="">请选择</option>
									<option value="1" {{if $detail.deliveroversea eq 1}} selected {{/if}}>英华英国仓</option>
									<option value="2" {{if $detail.deliveroversea eq 2}} selected {{/if}}>英华德国仓</option>
									<option value="3" {{if $detail.deliveroversea eq 3}} selected {{/if}}>EZGO美国仓</option>
									<option value="4" {{if $detail.deliveroversea eq 4}} selected {{/if}}>万邑通美西仓</option>
								</select>
								货运方式：
								<select name="transportoversea" id="transportoversea">

									{{if $detail.transportoversea eq "UPS-G-I"}}
										<option value="{{$detail.transportoversea}}">美国 UPS Ground</option>
									{{elseif $detail.transportoversea eq "DHLPEU"}}
										<option value="{{$detail.transportoversea}}">德国 DHL Paket</option>
									{{elseif $detail.transportoversea eq "DPDEU"}}
										<option value="{{$detail.transportoversea}}">德国 DPD Domestic Package</option>
									{{elseif $detail.transportoversea eq "DPORD"}}
										<option value="{{$detail.transportoversea}}">德国 DP Large Letter</option>
									{{elseif $detail.transportoversea eq "YH2TK"}}
										<option value="{{$detail.transportoversea}}">英国 Royal Mail 2nd Class TR48</option>
									{{elseif $detail.transportoversea eq "1000111"}}
										<option value="{{$detail.transportoversea}}">1000111</option>
									{{else}}
										<option value="">请选择</option>
									{{/if}}
									<!--
									<option value="">请选择</option>
									<option value="UPS-G-I" {{if $detail.transportoversea eq "UPS-G-I"}} selected {{/if}}>美国 UPS Ground</option>
									<option value="DHLPEU" {{if $detail.transportoversea eq "DHLPEU"}} selected {{/if}}>德国 DHL Paket</option>
									<option value="DPDEU" {{if $detail.transportoversea eq "DPDEU"}} selected {{/if}}>德国 DPD Domestic Package</option>
									<option value="DPORD" {{if $detail.transportoversea eq "DPORD"}} selected {{/if}}>德国 DP Large Letter</option>
									<option value="YH2TK" {{if $detail.transportoversea eq "YH2TK"}} selected {{/if}}>英国 Royal Mail 2nd Class TR48</option>
									-->
								</select>
                        </span>
					</p>
					<p>
						<label>优先级选择	</label>
                             <span class="field">
                                <input type="text" name="priority" id="priority" class="width200" value="{{$detail.priority}}" placeholder="请输入优先级" onblur="checkDecimal(this,1)">
	                            (优先级为整数格式，数值越小，优先级越高,若同等级，则根据最新操作时间排序)
                            </span>
					</p>
					<p class="stdformbutton">
                        	<span >
                            <input type="hidden" name="id" value="{{$detail.id}}" id="id">
                            <button type="button" class="submit radius2" id="btn" onClick="saveOverseaRules()">保存</button></span>
					</p>
				</form>

				<br />

			</div><!--subcontent-->

			<!--subcontent-->

		</div><!--contentwrapper-->

	</div><!-- centercontent -->


</div><!--bodywrapper-->





</body>
</html>
